package com.huzz.service;

import cloud.tianai.captcha.spring.vo.CaptchaResponse;
import cloud.tianai.captcha.spring.vo.ImageCaptchaVO;
import cloud.tianai.captcha.validator.common.model.dto.ImageCaptchaTrack;

/**
 * @Name 名称
 * @Description 描述
 * @Author 童年的纸飞机
 * @Since 2023-06-2023/6/7 16:20
 */
public interface CaptchaService {


    /**
     * 生成验证码
     *
     * @param captchaType
     * @return
     */
    CaptchaResponse<ImageCaptchaVO> generateCaptcha(String captchaType);

    /**
     * 校验验证码
     * @param id
     * @param imageCaptchaTrack
     * @return
     */
    boolean verifyCaptcha(String id, ImageCaptchaTrack imageCaptchaTrack);

}
